package com.tbit.uqbike.client.service;

import com.tbit.uqbike.client.pojo.Machine;
import com.tbit.uqbike.client.pojo.MachineFault;
import com.tbit.uqbike.client.pojo.User;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;

/**
 * @Author: chen
 * @Description:
 * @Date: 创建于 9:14 2020/1/15
 */
public interface MachineFaultService {

    public void insert(MultipartFile[] files, MachineFault machineFault, HttpServletRequest request,
                       User user, Machine machine);

    /**
     * 通过设备id查询
     *
     * @param machineId
     * @return
     */
    MachineFault getByMachineId(Integer machineId);

    /**
     * @description: 直接添加车辆故障
     * @author: mo.shanyong
     * @date: 2025/5/13 15:29
     * @param: machineFault
     */
    void add(MachineFault machineFault);

    /**
     * @description: 根据车辆id删除车辆的故障信息
     * @author: mo.shanyong
     * @date: 2025/5/13 15:57
     * @param: machineId
     */
    void del(Integer machineId);
}
